package org.qqcui.designpattern.patterns.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * 迭代器模式客户端
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/6 14:34
 **/
public class Client {

    public static void main(String[] args) {
        List<College> colleges = new ArrayList<>();

        ComputeCollege computeCollege = new ComputeCollege();
        InfoCollege infoCollege = new InfoCollege();
        colleges.add(computeCollege);
        colleges.add(infoCollege);

        OutputImpl output = new OutputImpl(colleges);
        output.printCollege();
    }
}
